1111
22225555555555555555555
package com.lantaiyuan.ebus.realtime.controller;
撒旦法
import javax.annotation.Resource;
import org.lanqiao.ssm.common.web.controller.base.BasicController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lantaiyuan.ebus.realtime.model.AppUserRegister;
import com.lantaiyuan.ebus.realtime.service.AppUserServiceI;
import com.wordnik.swagger.annotations.ApiOperation;
/**
 * 
  * @ClassName: AppUserController
  * Company:深圳市蓝泰源信息技术股份有限公司
  * @author Yuan.Tan
  * @date 2016年12月22日 下午2:05:40
 */
@RestController
@RequestMapping("/appUser")
public class AppUserController extends BasicController  {
	@Resource
	private AppUserServiceI appUserService;
	 
	@ApiOperation(value = "APP用户注册登录")
	@PostMapping(value = "/registerAndLogin" )
	public Object registerAndLogin(AppUserRegister appUserRegister) {
		return setSimpleSuccess(appUserService.registerAndLogin(appUserRegister));
	}
	
	@ApiOperation(value = "APP用户修改个人信息")
	@PostMapping(value = "/update" )
	public Object update(AppUserRegister appUserRegister) {
		return setSimpleSuccess(appUserService.update(appUserRegister));
	}
	
	@ApiOperation(value = "APP用户注销登录")
	@PostMapping(value = "/logout" )
	public Object logout(AppUserRegister appUserRegister) {
		return setSimpleSuccess(appUserService.logout(appUserRegister));
	}
}
